{\rtf1\ansi\ansicpg936\cocoartf1344\cocoasubrtf720
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset134 STHeitiSC-Light;}
{\colortbl;\red255\green255\blue255;\red29\green133\blue25;\red77\green0\blue158;\red46\green13\blue110;
\red186\green0\blue17;\red180\green0\blue98;\red164\green8\blue0;\red92\green38\blue153;\red0\green11\blue255;
\red68\green137\blue147;\red48\green111\blue121;}
\paperw11900\paperh16840\margl1440\margr1440\vieww25100\viewh16980\viewkind0
\deftab963
\pard\tx963\pardeftab963\pardirnatural

\f0\fs60 \cf0 \CocoaLigature0 UIImage\

\fs40     \cf2 //
\f1 \'cb\'fc\'ca\'c7
\f0 UIImage
\f1 \'b5\'c4\'b6\'d4\'cf\'f3
\f0 \cf0 \
    \cf2 //
\f1 \'d7\'f7\'d3\'c3
\f0 \cf0 \
    \cf2 //
\f1 \'cb\'fc\'ca\'c7\'cd\'a8\'b9\'fd\'d2\'bb\'d0\'a9\'b7\'bd\'b7\'a8\'c0\'b4\'bb\'f1\'b5\'c3\'cd\'bc\'c6\'ac\'d7\'ca\'d4\'b4\'a3\'a8\'b0\'fc\'c0\'a8\'b1\'be\'b5\'d8\'d7\'ca\'d4\'b4\'ba\'cd\'cd\'f8\'c2\'e7\'d7\'ca\'d4\'b4\'a3\'a9
\f0 \cf0 \
    \cf2 //
\f1 \'cc\'ed\'bc\'d3\'cd\'bc\'c6\'ac\'b5\'c4\'ca\'b1\'ba\'f2\'d2\'bb\'b6\'a8\'d2\'aa\'d7\'a2\'d2\'e2\'d1\'a1\'d6\'d0
\f0 copy item if needed 
\f1 \'d5\'e2\'d2\'bb\'cf\'ee\'a3\'ac\'b7\'f1\'d4\'f2\'b5\'b1\'c4\'e3\'b5\'c4\'b9\'a4\'b3\'cc\'d2\'c6\'b5\'bd\'c1\'ed\'d2\'bb\'b8\'f6\'b5\'e7\'c4\'d4\'c9\'cf\'ca\'b1\'a3\'ac\'b9\'a4\'b3\'cc\'bd\'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ce\'d2\'c3\'c7\'b2\'bb\'bf\'c9\'d2\'d4\'ca\'a1\'c2\'d4\'ba\'f3\'d7\'ba
\f0 *********  xx.jpg\cf0 \
    \cf3 UIImage\cf0  * image1 = [\cf3 UIImage\cf0  \cf4 imageNamed\cf0 :\cf5 @"mm.jpg"\cf0 ] ;\
\
    //
\f1 \'b5\'da\'b6\'fe\'d6\'d6
\f0  
\f1 \'cd\'a8\'b9\'fd\'ce\'c4\'bc\'fe\'c2\'b7\'be\'b6\'bb\'f1\'c8\'a1\'cd\'bc\'c6\'ac
\f0 \
    \cf2 //
\f1 \'b2\'ce\'ca\'fd\'d6\'b8\'b5\'c4\'ca\'c7\'ce\'c4\'bc\'fe\'c2\'b7\'be\'b6
\f0 \cf0 \
	[[\cf3 NSBundle\cf0  \cf4 mainBundle\cf0 ] \cf4 pathForResource\cf0 :\cf5 @"mm.jpg"\cf0  \cf4 ofType\cf0 :\cf6 nil\cf0 ]\cf2  
\f1 \'ba\'cd\'cf\'c2\'c3\'e6\'b7\'bd\'b7\'a8\'b5\'c4\'d0\'a7\'b9\'fb\'ca\'c7\'d2\'bb\'d1\'f9\'b5\'c4
\f0 \cf0 \
    \cf2 //
\f1 \'cd\'a8\'b9\'fd
\f0 [NSbundle mainBundle]
\f1 \'bb\'f1\'b5\'c3\'c2\'b7\'be\'b6\'ca\'c7\'b0\'fc\'c2\'b7\'be\'b6
\f0 \cf0 \
    \cf3 NSString\cf0  * filePath = [[\cf3 NSBundle\cf0  \cf4 mainBundle\cf0 ] \cf4 pathForResource\cf0 :\cf5 @"1"\cf0  \cf4 ofType\cf0 :\cf5 @"png"\cf0 ] ;\
    \
    \cf3 UIImage\cf0  * image2 = [\cf3 UIImage\cf0  \cf4 imageWithContentsOfFile\cf0 :filePath] ;\
\cf2 //    /Users/qq/Library/Developer/CoreSimulator/Devices/28EF2E3E-F3CA-4613-BB43-A05213611FA2/data/Containers/Bundle/Application/39AB764D-35BF-4A8F-9468-5DC22C2757F8/UIImage
\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'bd\'cf\'bc\'f2\'b5\'a5\'a3\'a9
\f0 \cf0 \
    \cf2 //
\f1 \'cd\'a8\'b9\'fd\'c2\'b7\'be\'b6\'b5\'c4\'b7\'bd\'ca\'bd\'bb\'f1\'b5\'c3\'cd\'bc\'c6\'ac\'a3\'ac\'b2\'bb\'bb\'e1\'b3\'f6\'cf\'d6\'c9\'cf\'ca\'f6\'ce\'ca\'cc\'e2\'a3\'ac\'b5\'ab\'ca\'c7\'ca\'e9\'d0\'b4\'b5\'c4\'b4\'fa\'c2\'eb\'c1\'bf\'bb\'e1\'b1\'e4\'b6\'e0\
******************************************************************************************\
\pard\tx963\pardeftab963\pardirnatural

\f0 \cf7 ****\cf3 UIImage\cf0  * image1 = [\cf3 UIImage\cf0  \cf4 imageNamed\cf0 :\cf5 @"mm.jpg"\cf0 ] ;\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf2 \
\pard\tx963\pardeftab963\pardirnatural

\f0 \cf7 ****\cf3 NSString\cf0  * filePath = [[\cf3 NSBundle\cf0  \cf4 mainBundle\cf0 ] \cf4 pathForResource\cf0 :\cf5 @"1"\cf0  \cf4 ofType\cf0 :\cf5 @"png"\cf0 ] ;\
\cf7 	\cf3 UIImage\cf0  * image2 = [\cf3 UIImage\cf0  \cf4 imageWithContentsOfFile\cf0 :filePath] ;
\f1 \cf2 \
\

\f0 \cf7 ****\cf3 UIImage\cf0  * image3 = [\cf3 UIImage\cf0  \cf4 imageWithData\cf0 :[[\cf3 NSData\cf0  \cf4 alloc\cf0 ]\cf4 init\cf0 ]] ;
\f1 \cf2 \

\b \cf0 ============================================================
\b0 \cf2 \
\
\pard\tx963\pardeftab963\pardirnatural

\f0\fs60 \cf0 UIButton
\f1\fs40 \cf2 \

\f0 \cf0 //
\f1 \'d7\'f7\'d3\'c3\'a3\'ba\'c4\'dc\'b9\'bb\'cf\'ec\'d3\'a6\'d3\'c3\'bb\'a7\'b5\'e3\'bb\'f7\'a3\'ac\'d2\'b2\'bf\'c9\'d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\f1 \'ca\'c7\'d6\'bb\'b6\'c1\'b5\'c4\'a3\'ac\'cb\'f9\'d2\'d4\'ce\'d2\'c3\'c7\'cd\'a8\'b9\'fd\'b0\'b4\'c5\'a5\'b5\'c4\'ca\'f4\'d0\'d4\'ca\'c7\'b2\'bb\'c4\'dc\'c9\'e8\'d6\'c3\'b0\'b4\'c5\'a5\'b5\'c4\'d1\'f9\'ca\'bd\'a3\'ac\'c4\'c7\'c3\'b4\'ce\'d2\'c3\'c7\'d6\'bb\'c4\'dc\'cd\'a8\'b9\'fd\'c0\'e0\'b7\'bd\'b7\'a8\'b5\'c4\'b4\'b4\'bd\'a8\'c0\'b4\'c9\'e8\'d6\'c3\'ce\'d2\'c3\'c7\'b0\'b4\'c5\'a5\'b5\'c4\'d1\'f9\'ca\'bd\

\f0 //    UIButtonTypeCustom\cf0 \
\cf2 //    UIButtonTypeSystem\cf0 \
\cf2 //    UIButtonTypeDetailDisclosure,\cf0 \
\cf2 //    UIButtonTypeInfoLight,\cf0 \
\cf2 //    UIButtonTypeInfoDark,\cf0 \
\cf2 //    UIButtonTypeContactAdd,\cf0 \
\cf2 //    UIButtonTypeRoundedRect = UIButtonTypeSystem,\cf0 \

\f1 \cf2 \
\pard\tx963\pardeftab963\pardirnatural

\f0\fs50 \cf0 //
\f1 \'cf\'b5\'cd\'b3\'d1\'f9\'ca\'bd\'b0\'b4\'c5\'a5   \'b3\'f5\'ca\'bc\'bb\'af + \'ce\'bb\'d6\'c3\'a3\'a8frame\'a3\'a9+  \'b0\'b4\'c5\'a5\'b1\'ea\'cc\'e2  +  \'b1\'b3\'be\'b0\'d1\'d5\'c9\'ab
\f0\fs40 \
    \cf3 UIButton\cf0  * button2 = [\cf3 UIButton\cf0  \cf4 buttonWithType\cf0 :\cf4 UIButtonTypeSystem\cf0 ] ;\
    button2.\cf8 frame\cf0  = \cf4 CGRectMake\cf0 (\cf9 50\cf0 , \cf9 150\cf0 , \cf9 80\cf0 , \cf9 40\cf0 ) ;\
\
\pard\tx963\pardeftab963\pardirnatural
\cf2 //    UIControlStateNormal   
\f1 \'d5\'fd\'b3\'a3\'d7\'b4\'cc\'ac\'ce\'c4\'d7\'d6\'b5\'c4\'cf\'d4\'ca\'be
\f0 \cf0 \
\cf2 //    UIControlStateHighlighted  
\f1 \'b8\'df\'c1\'c1\'d7\'b4\'cc\'ac\'cf\'c2\'ce\'c4\'d7\'d6\'b5\'c4\'cf\'d4\'ca\'be
\f0 \cf0 \
\cf2 //    UIControlStateSelected   
\f1 \'d1\'a1\'d6\'d0\'d7\'b4\'cc\'ac\'cf\'c2\'ce\'c4\'d7\'d6\'b5\'c4\'cf\'d4\'ca\'be\

\f0 \cf0 \
    [button2 \cf4 setTitle\cf0 :\cf5 @"
\f1 \'b0\'b4\'c5\'a5
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\cf2 //
\f1 \'c9\'e8\'d6\'c3\'b8\'df\'c1\'c1\'d7\'b4\'cc\'ac\'cf\'c2\'b5\'c4\'ce\'c4\'d7\'d6  \cf0 \'ca\'f3\'b1\'ea\'b5\'e3\'d7\'c5\'b2\'bb\'b7\'c5\'b5\'c4\'d7\'b4\'cc\'ac
\f0 \
    [button2 \cf4 setTitle\cf0 :\cf5 @"
\f1 \'b8\'df\'b6\'c8
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateHighlighted\cf0 ];\
 \
    button2.\cf8 backgroundColor\cf0  = [\cf3 UIColor\cf0  \cf4 redColor\cf0 ] ;\
    [\cf6 self\cf0 .\cf10 window\cf0  \cf4 addSubview\cf0 :button2] ;\

\f1 \cf2 \
\pard\tx963\pardeftab963\pardirnatural

\f0\fs50 \cf0 //
\f1 \'d7\'d4\'b6\'a8\'d2\'e5\'b0\'b4\'c5\'a5
\f0\fs40 \
    \cf3 UIButton\cf0  * button4 = [\cf3 UIButton\cf0  \cf4 buttonWithType\cf0 :\cf4 UIButtonTypeCustom\cf0 ] ;\
    button4.\cf8 frame\cf0  = \cf4 CGRectMake\cf0 (\cf9 50\cf0 , \cf9 250\cf0 , \cf9 80\cf0 , \cf9 40\cf0 ) ;\
    [button4 \cf4 setTitle\cf0 :\cf5 @"
\f1 \'d7\'d4\'b6\'a8\'d2\'e5
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
    button4.\cf8 backgroundColor\cf0  = [\cf3 UIColor\cf0  \cf4 redColor\cf0 ] ;\
    [\cf6 self\cf0 .\cf10 window\cf0  \cf4 addSubview\cf0 :button4] ;\
\pard\tx963\pardeftab963\pardirnatural
\cf2 //
\f1 \'cf\'b5\'cd\'b3\'d1\'f9\'ca\'bd\'cf\'c2\'a3\'ac\'c9\'e8\'d6\'c3\'b1\'ea\'cc\'e2\'ce\'c4\'d7\'d6\'b5\'c4\'ca\'b1\'ba\'f2\'a3\'ac\'cf\'b5\'cd\'b3\'c4\'ac\'c8\'cf\'ce\'c4\'d7\'d6\'ce\'aa\'c0\'b6\'c9\'ab
\f0 \cf0 \
\cf2 //
\f1 \'d7\'d4\'b6\'a8\'d2\'e5\'d1\'f9\'ca\'bd\'cf\'c2\'a3\'ac\'c9\'e8\'d6\'c3\'b1\'ea\'cc\'e2\'ce\'c4\'d7\'d6\'b5\'c4\'ca\'b1\'ba\'f2\'a3\'ac\'cf\'b5\'cd\'b3\'c4\'ac\'c8\'cf\'ce\'c4\'d7\'d6\'ce\'aa
\f0 clearColor
\f1 \'a3\'a8\'cd\'b8\'c3\'f7\'c9\'ab\'a3\'a9\
\

\f0 \cf3 	UIImage\cf0  * smallImage = [\cf3 UIImage\cf0  \cf4 imageNamed\cf0 :\cf5 @"1"\cf0 ] ;\
    \cf3 UIButton\cf0  * button5 = [\cf3 UIButton\cf0  \cf4 buttonWithType\cf0 :\cf4 UIButtonTypeCustom\cf0 ] ;\
    \cf2 //
\f1 \'b2\'bb\'b9\'dc\'c4\'e3\'b5\'c4\'cd\'bc\'c6\'ac\'b4\'f3\'d0\'a1\'ca\'c7\'b6\'e0\'c9\'d9\'a3\'ac\'b6\'bc\'bb\'e1\'d6\'b1\'bd\'d3\'c6\'bd\'c6\'cc\'d5\'fb\'b8\'f6\'b0\'b4\'c5\'a5
\f0 \cf0 \
    [button5 \cf4 setBackgroundImage\cf0 :smallImage \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
    \cf2 //
\f1 \'c8\'e7\'b9\'fb\'b5\'b1\'b0\'b4\'c5\'a5\'b5\'c4\'bf\'ed\'b6\'c8\'ba\'cd\'b8\'df\'b6\'c8\'b4\'f3\'d3\'da\'cd\'bc\'c6\'ac\'b5\'c4\'bf\'ed\'b6\'c8\'ba\'cd\'b8\'df\'b6\'c8\'a3\'ac\'c4\'c7\'c3\'b4\'cd\'bc\'c6\'ac\'be\'cd\'bb\'e1\'d2\'d4\'d5\'fd\'b3\'a3\'b5\'c4\'b4\'f3\'d0\'a1\'bd\'f8\'d0\'d0\'a3\'ac\'b2\'a2\'c7\'d2\'b2\'bb\'bb\'e1\'d1\'b9\'cb\'f5\'bb\'f2\'d5\'df\'c0\'ad\'c9\'ec
\f0 \cf0 \
    \cf2 //
\f1 \'c8\'e7\'b9\'fb\'b0\'b4\'c5\'a5\'b5\'c4\'bf\'ed\'b6\'c8\'ba\'cd\'b8\'df\'b6\'c8\'d0\'a1\'d3\'da\'cd\'bc\'c6\'ac\'b5\'c4\'bf\'ed\'b6\'c8\'bb\'f2\'d5\'df\'b8\'df\'b6\'c8\'a3\'ac\'c4\'c7\'c3\'b4\'cd\'bc\'c6\'ac\'bb\'b9\'ca\'c7\'bb\'e1\'b1\'bb\'d1\'b9\'cb\'f5
\f0 \cf0 \
    [button5 \cf4 setImage\cf0 :smallImage \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\cf2 \
//
\f1 \'c9\'e8\'d6\'c3\'bc\'d3\'ba\'c5\'b0\'b4\'c5\'a5
\f0 \cf0 \
    \cf3 UIButton\cf0  * button3 = [\cf3 UIButton\cf0  \cf4 buttonWithType\cf0 :\cf4 UIButtonTypeContactAdd\cf0 ] ;\
    button3.\cf8 frame\cf0  = \cf4 CGRectMake\cf0 (\cf9 50\cf0 , \cf9 200\cf0 , \cf9 80\cf0 , \cf9 40\cf0 ) ;\
    [button3 \cf4 setTitle\cf0 :\cf5 @"
\f1 \'b0\'b4\'c5\'a5
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\pard\tx963\pardeftab963\pardirnatural

\fs50 \cf0 //
\f1 \'cc\'ed\'bc\'d3\'b5\'e3\'bb\'f7\'ca\'c2\'bc\'fe
\f0\fs40 \
    \cf2 //
\f1 \'b5\'da\'d2\'bb\'b8\'f6\'b2\'ce\'ca\'fd
\f0   
\f1 \'c4\'bf\'b1\'ea
\f0 \cf0 \
    \cf2 //
\f1 \'b5\'da\'b6\'fe\'b8\'f6\'b2\'ce\'ca\'fd
\f0   
\f1 \'b7\'bd\'b7\'a8\'c3\'fb
\f0 \cf0 \
    \cf2 //
\f1 \'b5\'da\'c8\'fd\'b8\'f6\'b2\'ce\'ca\'fd
\f0   
\f1 \'b5\'e3\'bb\'f7\'b5\'c4\'b7\'bd\'ca\'bd\'a3\'a8\'b0\'b4\'c5\'a5\'b5\'c4\'b7\'bd\'b7\'a8\'ca\'b2\'c3\'b4\'ca\'b1\'ba\'f2\'cf\'ec\'d3\'a6\
\pard\tx963\pardeftab963\pardirnatural

\f0 \cf0     [button3  \cf4 addTarget\cf0 :\cf6 self\cf4 action\cf0 :\cf6 @selector\cf0 (pressBtn)\cf4 forControlEvents\cf0 :\cf4 UIControlEventTouchDownRepeat\cf0 ];\
\

\f1 \cf2 *********************************************************************************\
\cf0 \'b3\'f5\'ca\'bc\'bb\'af
\f0 \cf3 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf3 UIButton\cf0  * button2 = [\cf3 UIButton\cf0  \cf4 buttonWithType\cf0 :\cf4 UIButtonTypeSystem\cf0 ] ;\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf2 \
\cf0 \'ce\'bb\'d6\'c3
\f0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 button2.\cf8 frame\cf0  = \cf4 CGRectMake\cf0 (\cf9 50\cf0 , \cf9 150\cf0 , \cf9 80\cf0 , \cf9 40\cf0 ) ;\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf2 \
\cf0 \'b1\'ea\'cc\'e2 \'ba\'cd \'b1\'ea\'cc\'e2\'d1\'d5\'c9\'ab
\f0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 [button2 \cf4 setTitle\cf0 :\cf5 @"
\f1 \'b0\'b4\'c5\'a5
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\cf7 ****\cf0 [button2 \cf4 setTitleColor\cf0 :[\cf3 UIColor\cf0  \cf4 blackColor\cf0 ] \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf0 \'b1\'b3\'be\'b0\'d1\'d5\'c9\'ab
\f0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 button2.\cf8 backgroundColor\cf0  = [\cf3 UIColor\cf0  \cf4 redColor\cf0 ] ;\
\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf0 \'b1\'b3\'be\'b0\'cd\'bc\'c6\'ac
\f0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 [button5 \cf4 setBackgroundImage\cf0 :[\cf3 UIImage\cf0  \cf4 imageNamed\cf0 :\cf5 @"1"\cf0 ] \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf0 \'b0\'b4\'c5\'a5\'cd\'bc\'c6\'ac
\f0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 [button5 \cf4 setImage\cf0 :[\cf3 UIImage\cf0  \cf4 imageNamed\cf0 :\cf5 @"1"\cf0 ] \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
\
\pard\tx963\pardeftab963\pardirnatural

\f1 \cf0 \'b1\'bb\'b5\'e3\'bb\'f7\'b4\'a5\'b7\'a2\'ca\'c2\'bc\'fe\
\pard\tx963\pardeftab963\pardirnatural

\f0 \cf7 ****\cf0 [button3 \cf4 addTarget\cf0 :\cf6 self\cf4 action\cf0 :\cf6 @selector\cf0 (pressBtn:)\cf4 forControlEvents\cf0 :\cf4 UIControlEventTouchUpInside\cf0 ];\
\pard\tx963\pardeftab963\pardirnatural
\cf6 @interface\cf0  \cf11 AppDelegate\cf0  ()\
\{\
    \cf6 BOOL\cf0  isClick ;\
\}\
\cf6 @end\cf0 \
- (\cf6 void\cf0 ) pressBtn:(\cf3 UIButton\cf0  *)btn\
\{\
    \cf6 if\cf0  (\cf10 isClick\cf0 )\
    \{\
        [btn \cf4 setTitle\cf0 :\cf5 @"
\f1 \'ce\'d2\'ca\'c7\'b0\'b4\'c5\'a5
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
        [btn \cf4 setTitleColor\cf0 :[\cf3 UIColor\cf0  \cf4 yellowColor\cf0 ] \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
    \}\
    \cf6 else\cf0 \
    \{\
        [btn \cf4 setTitle\cf0 :\cf5 @"
\f1 \'d4\'dd\'cd\'a3
\f0 "\cf0  \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
        [btn \cf4 setTitleColor\cf0 :[\cf3 UIColor\cf0  \cf4 redColor\cf0 ] \cf4 forState\cf0 :\cf4 UIControlStateNormal\cf0 ] ;\
    \}\
    \cf10 isClick\cf0  = !\cf10 isClick\cf0  ;  \
\}\
\cf2 //    
\f1 \'c9\'e8\'d6\'c3\'b0\'b4\'c5\'a5\'ca\'c7\'b7\'f1\'c4\'dc\'b9\'bb\'b5\'e3\'bb\'f7
\f0  NO 
\f1 \'b2\'bb\'c4\'dc\'b5\'e3\'bb\'f7
\f0   YES 
\f1 \'c4\'dc\'b9\'bb\'b5\'e3\'bb\'f7
\f0 \cf0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 button1.\cf8 enabled\cf0  = \cf6 NO\cf0  ;\
\pard\tx963\pardeftab963\pardirnatural
\cf2 //    
\f1 \'b9\'d8\'b5\'f4\'d3\'c3\'bb\'a7\'bd\'bb\'bb\'a5
\f0 \cf0 \
\pard\tx963\pardeftab963\pardirnatural
\cf7 ****\cf0 button1.\cf8 userInteractionEnabled\cf0  = \cf6 NO\cf0  ;\
=========================================================\
\pard\tx963\pardeftab963\pardirnatural
\cf2 \

\f1\fs60 \cf0 \'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7
\f0\fs40 \cf2 \
	//
\f1 \'ce\'aa\'ca\'b2\'c3\'b4\'d2\'aa\'ca\'b9\'d3\'c3\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7
\f0 \cf0 \
    \cf2 //
\f1 \'ce\'aa\'c1\'cb\'b7\'bd\'b1\'e3\'ce\'d2\'c3\'c7\'b9\'dc\'c0\'ed\'ca\'d3\'cd\'bc
\f0 ,
\f1 \'b8\'f7\'b8\'f6\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'d6\'d0\'b5\'c4\'ca\'d3\'cd\'bc\'ca\'c7\'bb\'a5\'b2\'bb\'cf\'e0\'b8\'c9
\f0 --
\f1 \'d2\'b2\'be\'cd\'ca\'c7\'cb\'b5\'c3\'bf\'b8\'f6\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'d6\'d0\'b5\'c4\'bf\'d8\'bc\'fe\'ca\'c7\'bb\'a5\'b2\'bb\'d3\'b0\'cf\'ec\'b5\'c4
\f0 \cf0 \
    \cf2 //
\f1 \'d4\'da\'b2\'bb\'cd\'ac\'b5\'c4\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'d6\'d0
\f0 tag
\f1 \'d6\'b5\'ca\'c7\'bf\'c9\'d2\'d4\'cf\'e0\'cd\'ac\'b5\'c4
\f0 \cf0 \
    \cf2 //
\f1 \'d4\'da\'d2\'d4\'ba\'f3\'b5\'c4\'cf\'ee\'c4\'bf\'d7\'ee\'ba\'c3\'b2\'bb\'d2\'aa\'d6\'b1\'bd\'d3\'bd\'ab\'bf\'d8\'bc\'fe\'cc\'ed\'bc\'d3\'b5\'bd
\f0 window
\f1 \'c9\'cf
\f0 \cf0 \
    \cf2 //window
\f1 \'ba\'cd\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'d6\'ae\'bc\'e4\'b5\'c4\'b9\'d8\'cf\'b5\'a3\'ba\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'ca\'c7\'b0\'ef\'d6\'fa\'ce\'d2\'c3\'c7\'b5\'c4
\f0 window
\f1 \'c0\'b4\'b9\'dc\'c0\'ed\'ca\'d3\'cd\'bc\'b5\'c4\'a3\'ac\'c4\'c7\'c3\'b4
\f0 window
\f1 \'ca\'c7\'c0\'b4\'b9\'dc\'c0\'ed\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'d6\'ae\'bc\'e4\'b5\'c4\'b9\'d8\'cf\'b5
\f0 \cf0 \
    \
    \cf6 self\cf0 .\cf10 window\cf0  = [[\cf3 UIWindow\cf0  \cf4 alloc\cf0 ] \cf4 initWithFrame\cf0 :\cf4 CGRectMake\cf0 (\cf9 0\cf0 , \cf9 0\cf0 , [\cf3 UIScreen\cf0  \cf4 mainScreen\cf0 ].\cf8 bounds\cf0 .\cf8 size\cf0 .\cf8 width\cf0 , [\cf3 UIScreen\cf0  \cf4 mainScreen\cf0 ].\cf8 bounds\cf0 .\cf8 size\cf0 .\cf8 height\cf0 )] ;\
    \cf6 self\cf0 .\cf10 window\cf0 .\cf8 backgroundColor\cf0  = [\cf3 UIColor\cf0  \cf4 whiteColor\cf0 ] ;\
    [\cf6 self\cf0 .\cf10 window\cf0  \cf4 makeKeyAndVisible\cf0 ] ;\
\cf2 //    //
\f1 \'be\'cd\'ca\'c7\'b8\'f8
\f0 window
\f1 \'c9\'e8\'d6\'c3\'b8\'f9\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'a3\'ac
\f0 window
\f1 \'d3\'d0\'c7\'d2\'d6\'bb\'d3\'d0\'d2\'bb\'b8\'f6\'b8\'f9\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7
\f0 \cf0 \
\cf2 //    //
\f1 \'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'be\'cd\'ca\'c7
\f0 UIViewController
\f1 \'b5\'c4\'b6\'d4\'cf\'f3
\f0 ,
\f1 \'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'b5\'c4\'d7\'f7\'d3\'c3\'a3\'ba\'ca\'b9\'d3\'c3\'b9\'dc\'c0\'ed\'ca\'d3\'cd\'bc\'d6\'ae\'bc\'e4\'b5\'c4\'b9\'d8\'cf\'b5
\f0 \cf0 \
    \cf6 self\cf0 .\cf10 window\cf0 .\cf8 rootViewController\cf0  = [[\cf11 CustomViewController\cf0  \cf4 alloc\cf0 ] \cf4 init\cf0 ] ;\
\
    \cf2 //
\f1 \'c8\'e7\'b9\'fb\'ce\'d2\'c3\'c7\'d0\'e8\'d2\'aa\'d6\'d8\'d0\'c2\'c9\'e8\'d6\'c3
\f0 window
\f1 \'b5\'c4\'b8\'f9\'ca\'d3\'cd\'bc\'bf\'d8\'d6\'c6\'c6\'f7\'b5\'c4\'bb\'b0\'a3\'ac\'c4\'c7\'c3\'b4\'ce\'d2\'c3\'c7\'be\'cd\'d0\'e8\'d2\'aa\'ca\'d6\'b6\'af\'b4\'b4\'bd\'a8
\f0 window
\f1 \'b2\'a2\'b8\'f8\'c6\'e4\'c9\'e8\'d6\'c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